export const datetime = (val) => {
    if (!val) {
        return
    }
    let myDate = new Date(val)
    return myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate() + " " + myDate.getHours() + ":" + myDate.getMinutes() + ":" + myDate.getSeconds()
};